<?php
include_once($_SERVER['DOCUMENT_ROOT']."/config.php");
include_once($gDOCUMENT_ROOT_SYSTEM.'include/filmAction.php');
include_once($gDOCUMENT_ROOT_SYSTEM.'include/filmReleaseOnBluRayAction.php');
include_once($gDOCUMENT_ROOT_SYSTEM.'templates/include/addon.php');
include_once($gDOCUMENT_ROOT_SYSTEM.'written_language/check_written_language.php');

include_once($gDOCUMENT_ROOT_SYSTEM.'/check_promulgator.php');

$filmAction = new filmAction();
$filmReleaseOnBluRayAction = new filmReleaseOnBluRayAction();


if(!isset($_POST['douban_id'])||empty($_POST['douban_id']))
{
	exit;
}
$douban_id = $_POST['douban_id'];
$where = array('douban_id'=>$douban_id);
$film_id = $filmAction->getFilmIdByDoubanId($douban_id);
if(empty($film_id))
{
	exit;
}

$data = $_POST;
$data['film_id'] = $film_id;

$result = $filmReleaseOnBluRayAction->AddFilmRelease($data);
if($result!==false)
{
	echo '已保存，<a href="'.addon::getMovieSubjectUrl($douban_id).'">返回</a>';
}
?>
